using System;

namespace com.bodurov.SilverlightControls.XmlCodeEditor.Enums
{
    [Flags]
    public enum XmlArea
    {
        Undefined                   = 0,
        OutsideTag                  = 1 << 0, // before < or after >
        InsideTag                   = 1 << 1, // after < before > not in string or comment
        InsideProcessingInstruction = 1 << 4, // after <? before ?>
        InsideSingleQuoteString     = 1 << 5, // after " before " ignore \"
        InsideDualQuoteString       = 1 << 6, // after ' before ' ignore \'
        InsideServerScriptCode      = 1 << 9, // after <% before %>
        InsideServerScriptPrintCode = 1 << 10, // after <%= before %>
        InsideServerDeclaration     = 1 << 11, // after <%@ before %>
        InsideServerBindStatement   = 1 << 12, // after <%# before %>
        InsideClientSideComment     = 1 << 13, // after <!-- before -->

    }

    // not used:
    //InsideXmlComment            = 1 << 2, // after <!-- before --> 
    //InsideXmlCData              = 1 << 3, // after <![CDATA[ before ]]>
    //IndideClientScriptTag       = 1 << 7, // after <script ... > before </script>
    //InsideServerScriptTag       = 1 << 8, // after <script ... runat="server"> before </script>

}